package ZuoYe18;

import java.util.Scanner;

public class Di2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
         String b = "[0-9]";
         String c = "[0-9]+\\.+[0-9]+";
         if(a.matches(b)){
             int i=Integer.parseInt(a);
             System.out.println(i);
         }else if (a.matches(c)){
             double d=Double.parseDouble(a);
             System.out.println(d);
         }
    }

}